+Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * configure.in: added -posix check for NeXTStep
+
+ * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+ a unique buffer for each thread.
+
+ * docs/gtk-config.1: clarified copyright
+
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
+Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * configure.in: added -posix check for NeXTStep
+
+ * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+ a unique buffer for each thread.
+
+ * docs/gtk-config.1: clarified copyright
+
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
+Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * configure.in: added -posix check for NeXTStep
+
+ * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+ a unique buffer for each thread.
+
+ * docs/gtk-config.1: clarified copyright
+
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
+Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * configure.in: added -posix check for NeXTStep
+
+ * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+ a unique buffer for each thread.
+
+ * docs/gtk-config.1: clarified copyright
+
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
+Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * configure.in: added -posix check for NeXTStep
+
+ * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+ a unique buffer for each thread.
+
+ * docs/gtk-config.1: clarified copyright
+
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
+Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * configure.in: added -posix check for NeXTStep
+
+ * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+ a unique buffer for each thread.
+
+ * docs/gtk-config.1: clarified copyright
+
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
+Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * configure.in: added -posix check for NeXTStep
+
+ * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+ a unique buffer for each thread.
+
+ * docs/gtk-config.1: clarified copyright
+
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
)
LIBS=$gtk_save_LIBS
+dnl NeXTStep cc seems to need this
+AC_MSG_CHECKING([for extra flags for POSIX compliance])
+AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
+ AC_MSG_RESULT(none needed),
+ gtk_save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -posix"
+ AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
+ AC_MSG_RESULT(-posix),
+ AC_MSG_RESULT()
+ CFLAGS=$gtk_save_CFLAGS
+ AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
+
if test "x$enable_xim" = "xyes"; then
CFLAGS="$CFLAGS -DUSE_XIM"
fi
.BR gimp (1),
.BR gimptool (1)
.SH COPYRIGHT
-Copyright \(co 1995 Spencer Kimball and Peter Mattis
+Copyright \(co 1998 Owen Taylor
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
for (i=0; i<5; i++)
{
- char buffer[10];
+ char buffer[5][10];
pthread_t thread;
- sprintf(buffer, "Thread %i", i);
- if (pthread_create (&thread, NULL, counter, buffer))
+ sprintf(buffer[i], "Thread %i", i);
+ if (pthread_create (&thread, NULL, counter, buffer[i]))
{
fprintf(stderr, "Couldn't create thread\n");
exit(1);
for (i=0; i<5; i++)
{
- char buffer[10];
+ char buffer[5][10];
pthread_t thread;
- sprintf(buffer, "Thread %i", i);
- if (pthread_create (&thread, NULL, counter, buffer))
+ sprintf(buffer[i], "Thread %i", i);
+ if (pthread_create (&thread, NULL, counter, buffer[i]))
{
fprintf(stderr, "Couldn't create thread\n");
exit(1);